Skip to content

Adds comprehensive test suite#3

Open
Dustinhoefer wants to merge 3 commits intoPirateTok:mainfrom
Dustinhoefer:feature/tests
Open

Adds comprehensive test suite#3
Dustinhoefer wants to merge 3 commits intoPirateTok:mainfrom
Dustinhoefer:feature/tests

Conversation

@Dustinhoefer
Copy link
Copy Markdown

Adds a comprehensive suite of tests to validate both internal utilities and external interactions with the TikTok API.

  • Enhances Reliability: Improves the overall stability and correctness of the client by verifying key components and live stream connectivity.
  • Unit Testing: Introduces unit tests for fundamental functionalities, including JSON parsing, WebSocket URL construction, and Protocol Buffer encoding/decoding.
  • Integration Testing: Implements real-time integration tests that connect to the TikTok HTTP API and WebSocket streams. These tests cover:
    • Verifying successful connections and reception of various live events (e.g., chat, gifts, likes).
    • Probing user status (online/offline) and handling user-not-found scenarios.
    • Fetching detailed room information.
  • Flexible Execution: Designs integration tests to be conditionally enabled via environment variables, ensuring that standard CI builds remain unaffected while allowing developers to easily run full integration tests locally. The README.md provides detailed instructions and necessary variable configurations.
  • Build Updates: Configures the pom.xml to integrate JUnit 5 for robust test execution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant